<!DOCTYPE html>
<!-- saved from url=(0120)http://wappass.baidu.com/passport/?login&tpl=wimn&subpro=wimn&regtype=1&u=https%3A%2F%2Fm.baidu.com/usrprofile%23logined -->
<html style="font-size: 62.5%;"><!--STATUS OK--><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>智嘛开门</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=240, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="format-detection" content="telephone=no, email=no">
<link href="__PUBLIC__/css/base_d843157.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="__PUBLIC__/js/jquery1.9.0.min.js"></script>                                    
</head>
<body>
<div id="pageWrapper">
    <header class="pass-header ">
		<span class="pass-header-title">智嘛开门</span>
	</header>
    <div class="mod-content">
		<form action="index.html" method="POST" class="form-wrapper" id="login-formWrapper">
			<div class="img-div">
				<div class="logo-dom"></div>
			</div>
			<p class="error_area" id="error"></p>
			<p class="form-item form-input-wrapper form-item-username form-input-mobile">
				<input type="text" name="phone" class="text-input" maxlength="60" placeholder="手机号" value="" id="phone">
			</p>
			
			<p class="form-item form-input-wrapper form-item-password form-input-mobile m-t10">
				<input type="text" name="code" id="code" class="text-input" id="login-password" placeholder="验证码" value="">
				<span class="input-clearValue"></span>
				<span id="login-pwdToggle" class="input-aide input-pwdToggle"></span>
			</p>
			<p class="form-item form-item-btn">
				<input type="button" value="查询" id="login-submit" class="pass-button-full pass-button-full-disabled">
			</p>
		</form>
	</div>
	<script>
		$(document).ready(function(){
			$("#login-submit").on('click', function(){
				if($("#phone").val() == ""){
					$("#error").show().html('请输入手机号');
					setTimeout(function(){
						$("#error").hide();
					}, 500);
					
					return false;
				}
				
				if($("#code").val() == ""){
					$("#error").show().html('请输入验证码');
					setTimeout(function(){
						$("#error").hide();
					}, 500);
					
					return false;
				}
				
				$.post('index.html', $("#login-formWrapper").serialize(), function(data){
					if(data.errCode/1){
						location.href = 'info.html';
					}else{
						$("#error").show().html(data.errMsg);
						setTimeout(function(){
							$("#error").hide();
						}, 500);
					}
				}, "JSON");
			});
		});
	</script>
</div>
</body>
</html>